import React from 'react'
import { BrowserRouter, Route } from 'react-router-dom'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import routes from '../routes';
import getstore from '../store/'

const App = ()=>(<Provider store={getstore()}>
    <BrowserRouter><div>{routes.map(route=><Route {...route}/>)}
    </div></BrowserRouter></Provider>);

ReactDOM.hydrate(<App/>,document.getElementById('root'));
